<template>
  <div>
    <button @click="bBar = !bBar">创建/销毁</button>
    <Hello v-if="bBar"/>
  </div>
</template>

<script>
import { ref } from 'vue';
import Hello from './Hello.vue'
export default {
  components: {
    Hello
  },
  setup() {
    const bBar = ref(true)
    return { bBar }
  }
}
</script>

<style lang="scss" scoped>

</style>